package com.fcat.common.user.vo;

public class KeycloakUser {
    /**
     * 客户端
     */
    private String client;
    /**
     * 用户ID
     */
    private String userId;

    /**
     * 用户名
     */
    private String username;

    /**
     * realm
     */
    private String realm;

    /**
     *
     */
    private String sessionId;

    /**
     * 不带 bearer 前缀
     */
    private String token;


    public KeycloakUser() {
    }

    public KeycloakUser(String client, String username) {
        this.client = client;
        this.username = username;
    }

    public String getClient() {
        return client;
    }

    public void setClient(String client) {
        this.client = client;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getRealm() {
        return realm;
    }

    public void setRealm(String realm) {
        this.realm = realm;
    }

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    @Override
    public String toString() {
        return "User{" +
                "client='" + client + '\'' +
                ", userId='" + userId + '\'' +
                ", username='" + username + '\'' +
                ", realm='" + realm + '\'' +
                ", sessionId='" + sessionId + '\'' +
                '}';
    }
}
